// 默认
const id1694237148 = {
  name: 'id1694237148默认',
  innerHTML({e, i, others, ingredient, sizeShape}){
    return `
      <div class="onePage">
        <p class="title center font16">合格证</p>
        <p>货号:
          <span class="bold center">${e.kindsNumber.kindsNumber}</span>
        </p>
        <p>品名:${e.kindsNumber.commodityName}</p>
        <p>本色段:${e.colorName}
          <span class="bold size">${e.size}</span>
          ${sizeShape}
        </p>
        <p>它色段:${others}</p>
        <p>品牌:${e.kindsNumber.brandedName}</p>
        <p>标准:${e.kindsNumberIngredient.standard || ''}</p>
        <p class="font10">安全类别符合:${e.kindsNumberIngredient.safetyType || ''}</p>
        <p class="font10">甲醛含量≤75mg/kg</p>
        <p class="font10">等级:合格品|检验员:${e.kindsNumber.supplier}</p>
        ${ingredient}
        
        <div class="bottomBox">
          <p class="font10">洗涤方式:按内标洗涤</p>
          <p class="font10">(此条码仅限内部使用)</p>
          <img class="barcode${i}">
          <p class="bold">${e.kindsNumber.kindsNumber}</p>
          <p>￥
            <span class="bold">${e.kindsNumber.sellingPrice}</span>
          </p>
        </div>
      </div>
    `
  },
  style: `
    .bottomBox p:last-child {
      position: absolute;
      bottom: 5mm;
      right: 7mm;
      font-size: 14px;
    }
  `
}

// 瑞谷锦
const id1125681210 = {
  name: `id1125681210瑞谷锦`,
  icon: 'https://carxin.oss-cn-beijing.aliyuncs.com/1694237148/kindsNumber/102/202105121739-59a05da1eba24422836cf24b2628622f.png',
  innerHTML({e, i, ingredient, sizeShape}){
    return `
      <div class="onePage">
        <p class="title center font16">合格证</p>
        <img src="${this.icon}" class="rgjIcon">
        <p>款号：<span class="bold">${e.kindsNumber.styleNumber}</span>
        </p>
        <p>尺码：<span class="bold">${e.size} (${sizeShape})</span>
        </p>
        <p>颜色：<span class="bold">${e.colorNo}</span>
          &nbsp;&nbsp;&nbsp;${e.colorName}
        </p>
        <p>品名：${e.kindsNumber.commodityName}</p>
        <p>等级：合格品 检验员 ${e.kindsNumber.supplier}</p>
        ${ingredient}
        
        <div class="bottomBox">
          <p class="font10">执行标准：&nbsp;&nbsp;
            <span class="bold">${e.kindsNumberIngredient.standard || ''}</span>
          </p>
          <p class="font9">安全技术类别:
            <span class="bold">${e.kindsNumberIngredient.safetyType || ''}</span>
          </p>
          <p class="font9 l15">(${e.kindsNumberIngredient.safetyType && e.kindsNumberIngredient.safetyType.endsWith('C类') ? '非' : ''}直接接触皮肤类)</p>
          <img class="barcode${i} l11">
          <p class="font9">内部条码：<span class="font10 bold">${e.kindsNumber.kindsNumber}</span>
          </p>
          <p class="font16">零售价：&nbsp;&nbsp;&nbsp;
            <span class="bold">${e.kindsNumber.sellingPrice}</span>
          </p>
        </div>
      </div>
    `
  },
  style: `
    .onePage .l15{
      margin-left: 15mm;
    }
    .onePage .l11{
      margin-left: 11.6mm;
    }
    .rgjIcon {
      width: 13mm;
      margin: 1mm 0 0 14mm;
    }
  `
}

// 袜子
const socks = {
  innerHTML({e, i, ingredient, sizeShape}){
    return `
      <div class="onePage">
        <p class="title center font16">合格证</p>
        <img src="${this.icon}" class="rgjIcon">
        <p>款号：<span class="bold">${e.kindsNumber.styleNumber}</span>
        </p>
        <p>尺码：<span class="bold">${e.size} (${sizeShape})</span>
        </p>
        <p>颜色：<span class="bold">${e.colorNo}</span>
          &nbsp;&nbsp;&nbsp;${e.colorName}
        </p>
        <p>品名：${e.kindsNumber.commodityName}</p>
        <p>等级：合格品 检验员 ${e.kindsNumber.supplier}</p>
        ${ingredient}
        
        <div class="bottomBox">
          <p class="font10">执行标准：&nbsp;&nbsp;
            <span class="bold">${e.kindsNumberIngredient.standard || ''}</span>
          </p>
          <p class="font9">安全技术类别:
            <span class="bold">${e.kindsNumberIngredient.safetyType || ''}</span>
          </p>
          <p class="font9 l15">(${e.kindsNumberIngredient.safetyType && e.kindsNumberIngredient.safetyType.endsWith('C类') ? '非' : ''}直接接触皮肤类)</p>
          <img class="barcode${i} l11">
          <p class="font9">内部条码：<span class="font10 bold">${e.kindsNumber.kindsNumber}</span>
          </p>
          <p class="font16">零售价：&nbsp;&nbsp;&nbsp;
            <span class="bold">${e.kindsNumber.sellingPrice}</span>
          </p>
        </div>
      </div>
    `
  },
  style: `
    .onePage .l15{
      margin-left: 15mm;
    }
    .onePage .l11{
      margin-left: 11.6mm;
    }
    .rgjIcon {
      width: 13mm;
      margin: 1mm 0 0 14mm;
    }
  `
}

module.exports = {
  id1694237148,
  id1125681210
}